﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;

namespace HCQ2_Model.VRDD.InputDto._0427
{
    /// <summary>
    ///  保存个人信息模型
    /// </summary>
    public class ModifyUserInfo
    {
        /// <summary>
        ///  登录用户id
        /// </summary>
        [RegularExpression("^([1-9][0-9]*)$", ErrorMessage = "请输入用户user_id")]//大于0正则表达式
        public int user_id { get; set; }
        /// <summary>
        ///  真实姓名
        /// </summary>
        public string du_name { get; set; }
        /// <summary>
        ///  性别
        ///  0-保密 1-男 2-女
        /// </summary>
        public int du_sex { get; set; }
        /// <summary>
        ///  所在地城市ID
        /// </summary>
        public int du_city_id { get; set; }
        /// <summary>
        ///  籍贯城市ID
        /// </summary>
        public int du_hometown_id { get; set; }
        /// <summary>
        ///  职业
        /// </summary>
        public string du_prof { get; set; }
        /// <summary>
        ///  毕业学校
        /// </summary>
        public string du_school { get; set; }
        /// <summary>
        ///  生日
        ///  yyyy-mm-dd
        /// </summary>
        public string user_birth { get; set; }
        /// <summary>
        ///  签名
        /// </summary>
        public string du_signature { get; set; }
    }
    /// <summary>
    ///  保存隐私设置模型
    /// </summary>
    public class ModifyUserPrivacy: DDBaseUser
    {
        /// <summary>
        ///  加我是否需要验证，默认是
        /// </summary>
        public bool dd_verify { get; set; } = true;
        /// <summary>
        ///  是否隐身，true:隐身
        /// </summary>
        public bool dd_hidden { get; set; }
        /// <summary>
        ///  真实姓名可见
        ///  0=仅自己可见；1=仅好友可见；2=所有人可见
        /// </summary>
        public int hide_name { get; set; }
        /// <summary>
        ///  性别可见
        ///  0=仅自己可见；1=仅好友可见；2=所有人可见
        /// </summary>
        public int hide_sex { get; set; }
        /// <summary>
        ///  手机号可见
        ///  0=仅自己可见；1=仅好友可见；2=所有人可见
        /// </summary>
        public int hide_mobile { get; set; }
        /// <summary>
        ///  生日可见
        ///  0=仅自己可见；1=仅好友可见；2=所有人可见
        /// </summary>
        public int hide_birthday { get; set; }
    }
}